# coding: UTF-8
# Filename : chain_activity_data_model.py
# Company : imedia
# Author : rose
# -*-coding:utf-8 -*-

#xml头文件
xml_head = '''<?xml version="1.0" encoding="UTF-8" ?>'''
imedia_start = '''<imedia>'''
imedia_end = '''</imedia>'''

#imedia_body内容模板
imedia_body = '''
<activity>
<id>{id}</id>
<name>{name}</name>
<category_id>{category_id}</category_id>
<category_name>{category_name}</category_name>
<from>{from}</from>
<to>{to}</to>
<image>{image}</image>
<storeinapp>{storeinapp}</storeinapp>
<description><![CDATA[{description}]]></description>
</activity>

'''
#通信验证失败
key_error = xml_head + '''
<imedia>
<error>
<code>000</code>
<msg><![CDATA[通信验证失败]]></msg>
</error>
</imedia>
'''